package user.controller;

import java.io.PrintWriter;
import java.util.Map;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.web.servlet.view.AbstractView;

public class JSONViewList extends AbstractView {   
	public JSONViewList()      {   
		super();    
		setContentType( "text/x-json; charset=euc-kr"); 
		}     
	@Override 
	protected void renderMergedOutputModel(Map model, HttpServletRequest request, HttpServletResponse response) 
	throws Exception {      
		String jsonList = (String) model.get("jsonList");   
		response.setContentType( "text/x-json; charset=euc-kr");   
		response.setHeader("Cache-Control", "no-cache"); 
		PrintWriter out = response.getWriter();   
		out.write(jsonList);
		out.flush(); 
		} 
}
